<!-- 实时时间配置 -->
<template>
  <div style="margin-top:16px">
    <el-form-item label="时间格式">
      <l-select v-model="myConfig.format"
                   :options="dicOption.format">
      </l-select>
    </el-form-item>
    <el-form-item label="格式">
      <el-input v-model="myConfig.format">
      </el-input>
    </el-form-item>
    <el-form-item label="字体间距">
      <el-input-number v-model="myConfig.split" controls-position="right" >
      </el-input-number>
    </el-form-item>
    <el-form-item label="字体">
      <span class="l_color_box r_margin_right8">
        <l-input-color
          v-model="myConfig.color"
          :notInput="true"
        ></l-input-color>
      </span>
      <el-input v-model="myConfig.color" class="r_96width r_margin_right8">
      </el-input>
      <el-input
        v-model="myConfig.fontSize"
        class="r_56width"
        oninput="value=value.replace(/[^\d]/g,'')"
      >
        <span slot="suffix" style="line-height: 32px">px</span>
      </el-input>
    </el-form-item>
    <el-form-item label="字体背景">
      <l-input-color v-model="myConfig.backgroundColor"></l-input-color>
    </el-form-item>
    <el-form-item label="对其方式">
      <l-select v-model="myConfig.textAlign"
                   :options="dicOption.textAlign">
      </l-select>
    </el-form-item>
    <el-form-item label="文字粗细">
      <l-select v-model="myConfig.fontWeight"
                   :options="dicOption.fontWeightOptions">
      </l-select>
    </el-form-item>
  </div>
</template>

<script>
import { dicOption } from "../../mixins/config";
export default {
    props: {
    config: {
      type: Object,
      default: () => ({}),
    },
  },
  data () {
    return {
      dicOption: dicOption
    }
  },
  computed: {
    myConfig() {
      return this.config;
    },
  },
}
</script>

<style>
</style>